<?xml version="1.0" encoding="UTF-8" ?>
<%@page import="com.stx.entity.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<%
User user = new User();
user.setUserName("dodo");
session.setAttribute("USER", user);

String[] s = {"aa","bb","cc"};
request.setAttribute("S", s);
%>
<%
/*User item = (User)session.getAttribute("USER");
String uname = item.getUserName();
out.print("用户名："+uname);*/
%>
用户名：${sessionScope.USER.userName}<br/>
用户名：${sessionScope.USER["userName"]}<br/>
算数运算：${1+2}<br/>
<input name="uname" value="${sessionScope.USER.userName}"/>
取出数组元素:${requestScope.S[1]}<br/>
<a href="elDemo1.jsp?num=5&uname=admin&uname=root&num1=">el表达式参数传递</a><br/>
${pageContext.request.contextPath }
</body>
</html>